#include<iostream>
#include<cstdio>
using namespace std;
const int N = 1111111;
int p[N];
int n;
int find(int x)
{ 
	if (x != p[x]) {
		p[x] = find(p[x]);
	}
	return p[x];
}
int main()
{
	scanf("%d", &n);
	for (int i = 1; i < N; i++) {
		p[i] = i;
	}
	for (int i = 0; i < n; i++) {
		int x;
		scanf("%d", &x);
		int px = find(x);
		cout << px << " ";
		p[px] = px + 1;
	}
	return 0;
}